from transformers import pipeline

classifier = pipeline(
    task="ner",
    device="cpu"
)
result = classifier("Hugging Face is a French company based in New York City.")
print("ner：", result)